/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package models;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author Eduardo
 */
@Embeddable
public class HorarioxlocalPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "IdLocal")
    private int idLocal;
    @Basic(optional = false)
    @NotNull
    @Column(name = "IdHorarioT")
    private int idHorarioT;

    public HorarioxlocalPK() {
    }

    public HorarioxlocalPK(int idLocal, int idHorarioT) {
        this.idLocal = idLocal;
        this.idHorarioT = idHorarioT;
    }

    public int getIdLocal() {
        return idLocal;
    }

    public void setIdLocal(int idLocal) {
        this.idLocal = idLocal;
    }

    public int getIdHorarioT() {
        return idHorarioT;
    }

    public void setIdHorarioT(int idHorarioT) {
        this.idHorarioT = idHorarioT;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idLocal;
        hash += (int) idHorarioT;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof HorarioxlocalPK)) {
            return false;
        }
        HorarioxlocalPK other = (HorarioxlocalPK) object;
        if (this.idLocal != other.idLocal) {
            return false;
        }
        if (this.idHorarioT != other.idHorarioT) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "models.HorarioxlocalPK[ idLocal=" + idLocal + ", idHorarioT=" + idHorarioT + " ]";
    }
    
}
